//
//  NSArray+UIImage.m
//  FunnyVideo
//
//  Created by 李鑫 on 15/10/13.
//  Copyright © 2015年 NewEggTech. All rights reserved.
//

#import "NSArray+UIImage.h"

@implementation NSArray (UIImage)


- (NSArray <UIImage *> *)imageNamesToImage{
    
    NSMutableArray *tempImg = [[NSMutableArray alloc] initWithCapacity:self.count];
    
    for (int i = 0; i < self.count; i++) {
        
        UIImage *image = [UIImage imageNamed:self[i]];
        
        [tempImg addObject:image];
    }
    
    return [NSArray arrayWithArray:tempImg];
}


@end
